<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<div class="page">
	<div class="pageContent">
		<form method="post" action="ClassInfoServlet.do?command=insert" class="pageForm required-validate" onsubmit="return validateCallback(this, navTabAjaxDone);">
			<div class="pageFormContent" layoutH="56">
			    <h2 class="contentTitle">班级信息维护</h2>
				<p>
					<label>班级编号：</label>
					<input name="classCode" value="${classInfo.classCode}" class="required" type="text" size="30" value="1001" />
				</p>
				<p>
					<label>班级名称：</label>
					<input name="className" value="${classInfo.className}" class="required" type="text" size="30" value="" />
				</p>
				<p>
					<label>所属系部：</label>
					<select name="deptCode">
					    <c:forEach items="${deptInfos}" var="deptInfo">
					       <option value="${deptInfo.deptCode}" ${deptInfo.deptCode==classInfo.deptInfo.deptCode?"selected":""}>${deptInfo.deptName}</option>
					    </c:forEach>
					</select>
				</p>
			</div>
			<div class="formBar">
				<ul>
					<li><div class="buttonActive"><div class="buttonContent"><button type="submit">保存</button></div></div></li>
					<li><div class="button"><div class="buttonContent"><button type="Button" onclick="navTab.closeCurrentTab()">取消</button></div></div></li>
				</ul>
			</div>
		</form>
	</div>
</div>